﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Entity;
using System.Data.EntityClient;
using System.Data.EntityModel;
using System.ComponentModel.DataAnnotations;

namespace GameSchool.Models
{
	/// <summary>
	/// CommentLike geymir þær upplýsingar sem þarf til að tengja 
	/// Like (Knús) eða Dislike (Huns) frá notanda við Comment í gagnagrunninn. 
	/// </summary>  
	
	[Table("gs_comment_like")]
	public class CommentLike
    {
        [Key]
		[Column("comment_id")]
		public int CommentLikeId { get; set;} 

        [Column("person_id")]
        public int PersonId { get; set; }

        [ForeignKey("PersonId")]
        public virtual Person Person { get; set; }

        [Column("video_lecture_id")]
        public int VideoLectureId { get; set; }

        [ForeignKey("VideoLectureId")]
        public virtual VideoLecture VideoLecture { get; set; }
		
        [Column("like_type")]
        public bool LikeType { get; set; }
		[Column("active")]
        public bool Active { get; set; }
    }
}